package com.cskaoyan.filter;

import org.springframework.web.filter.OncePerRequestFilter;

import javax.servlet.FilterChain;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebFilter;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/**
 * 创建日期: 2022/05/07 21:51
 *
 * @author JinLu Zhou
 */
public class CustomFilter extends OncePerRequestFilter {
    @Override
    protected void doFilterInternal(HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse, FilterChain filterChain) throws ServletException, IOException, IOException, ServletException {
        String requestURI = httpServletRequest.getRequestURI();
        /*if("/wx/auth/logout".equals(requestURI)){
            httpServletRequest.getSession().invalidate();
        }*/
        filterChain.doFilter(httpServletRequest,httpServletResponse);
    }
}